﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3.Exercise
{
    class Program
    {
        static void Main(string[] args)
        {
            string expression = Console.ReadLine();            
            int counter = 0;            
            for (int i = 0; i < expression.Length; i++)
            {
                if (counter<0)
                {
                    Console.WriteLine("Incorect");
                    break;
                }
                if (expression[i]=='(')
                {
                    counter++;
                }
                if (expression[i] == ')')
                {                    
                    counter--;
                }
            }
            if (counter==0)
            {
                Console.WriteLine("Corect");
            }
        }
    }
}
